package com.nickandted.sandbox.springws.elements;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

@XmlType(name="FullName", namespace="http://bar.foo", propOrder={"firstName", "lastName"})
@XmlAccessorType(XmlAccessType.FIELD)
public class FullName {

    @XmlElement(name="firstName", namespace="http://bar.foo")
    private String firstName;

    @XmlElement(name="lastName", namespace="http://bar.foo")
    private String lastName;

    /* normal getters and setters */

    public FullName(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }

    public FullName() {
        this.firstName = "";
        this.lastName = "";
    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }
}